package com.foreknow.demo23;

/**
 * 图书类
 *
 */
public class Book {
  private int pid;
  private String pname;
  private double price;
  private int storage;

  public Book(int pid,String pname,double price,int storage) {
    this.pid = pid;
    this.pname = pname;
    this.price = price;
    this.storage = storage;
  }

  public int getPid() {
    return pid;
  }

  public void setPid(int pid) {
    this.pid = pid;
  }

  public String getPname() {
    return pname;
  }

  public void setPname(String pname) {
    this.pname = pname;
  }

  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }

  public int getStorage() {
    return storage;
  }

  public void setStorage(int storage) {
    this.storage = storage;
  }
}
